SET(BD_GUI_CPP
BdItemDetaillerData.cpp
)

SET(BD_GUI_H
BdItemDetaillerData.h
)

SET(BD_GUI_MOC_H
BdItemDetaillerData.h
)

QT4_WRAP_CPP(BD_GUI_MOC_CPP ${BD_GUI_MOC_H})

INCLUDE_DIRECTORIES(
    ${CMAKE_CURRENT_SOURCE_DIR} ../core
     ../core/raster ../core/renderer ../core/symbology
     ${CMAKE_CURRENT_BINARY_DIR}
     ${CMAKE_CURRENT_BINARY_DIR}/../ui
     ${QT_INCLUDE_DIR}
     ${QT_INCLUDE_DIR}/QtCore
     ${QT_INCLUDE_DIR}/QtGui
)

ADD_LIBRARY(biblio_gui SHARED ${BD_GUI_CPP} ${BD_GUI_MOC_CPP})

# make sure that UI files will be processed first
ADD_DEPENDENCIES(biblio_gui ui)

TARGET_LINK_LIBRARIES(biblio_gui
  ${QT_QTGUI_LIBRARY} 
  ${QT_QTMAIN_LIBRARY} 
  ${SQLITE3_LIBRARIES}
  biblio_core
)

INSTALL(TARGETS biblio_gui
  RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
  LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
  ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)


